﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KinConquer
{
    public static unsafe class NativeExtended
    {
        public static void CopyTo(this string s, void* pDest)
        {
            byte* Dest = (byte*)pDest;
            for (int i = 0; i < s.Length; i++)
            {
                Dest[i] = (byte)s[i];
            }
        }
        public static bool CheckBitFlag(this uint value, uint flag)
        {
            return ((value & flag) == flag);
        }
    }
}
